package com.info.zhiduoduo.repository.entity.entrustmentproject;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
@TableName("zdd_entrustment_project_block")
public class EntrustmentProjectBlock extends Model<EntrustmentProjectBlock> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 委托接单项目ID
     */
    private Integer projectId;
    /**
     * 受托方id, 即创客id
     */
    private Integer entrusteeId;
    /**
     * 子项目ids
     */
    private String itemIds;
    /**
     * 验收单路径
     */
    private String deliveryPath;

    private Date createtime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
